if round(card field "#"/ mabeyfactor) = card field "#"/ mabeyfactor then put x + 1 into x
if round(card field "#"/ mabeyfactor) =card field "#"/mabeyfactor then put mabeyfactor into line x of field "factor"
end repeat
repeat until mabeyfactor2 = card field "#2"
put mabeyfactor2 + 1 into mabeyfactor2
if round(card field "#2"/ mabeyfactor2) = card field "#2"/mabeyfactor2 then put x2 + 1 into x2
if round(card field "#2"/mabeyfactor2)=card field "#2"/mabeyfactor2 then put mabeyfactor2 into line x2 of field "factor2"
end repeat
put x into y
put x2 into y2
repeat x times
repeat x2 times
if y2 = 0 then put x2 into y2
if line y of field factor = line y2 of field factor2 then put line y of field factor into card field GCF
if line y of field factor = line y2 of field factor2 then exit mouseUp
put y2 - 1 into y2
end repeat
put y - 1 into y
end repeat
end mouseUp
-- part 2 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=30 top=262 right=299 bottom=76
-- title width / last selected line: 0
-- icon id / first selected line: 1011 / 1011
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Home
----- HyperTalk script -----
on mouseUp
doMenu Home
end mouseUp
-- part 3 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=417 top=262 right=299 bottom=463
-- title width / last selected line: 0
-- icon id / first selected line: 14767 / 14767
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Info
----- HyperTalk script -----
on mouseUp
show card field Info
end mouseUp
-- part 4 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=110 top=171 right=190 bottom=156
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: #
-- part 5 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=212 top=191 right=210 bottom=274
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: GCF
-- part 6 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=329 top=169 right=188 bottom=375
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: #2
-- part 16 (field)
-- low flags: 81
-- high flags: 0004
-- rect: left=93 top=35 right=329 bottom=404
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Info
----- HyperTalk script -----
on mouseUp
hide card field Info
end mouseUp
-- part contents for card part 16
----- text -----
GCFACTOR 1.0
GCFactor 1.0 was programmed by David Johnson. It will factor and give the GCF of any two numbers you enter. If you only want to factor one number then put that number into one of the "Enter #" fields and delete anything in the other "Enter #" field. Send any comments or complaints to the address below or E-Mail me at America Online(David 171). If you send your shareware dues then you will recieve the complete source code and a free update. Please send five dollars, a disk (for update), and your return adress to: